package com.bird.system.adapter.auth.gateway

import com.bird.system.application.common.pl.AuthUserInfo
import com.bird.user.client.pl.UserInfoClientRes

fun UserInfoClientRes.toAuthUserInfo(): AuthUserInfo {
    return  AuthUserInfo(
        id = this.id,
        username = this.username,
        phone = this.phone,
        nickname = this.nickname,
        roles = this.roles
    )
}